Skip to content

Fix #3873: Properly unpickle shared TypeTrees #3874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 19, 2018

When a TypeTree is represented by a SHAREDterm, we need to follow the
SHAREDterm and call readTpt() again. We cannot rely on readTerm()
following the SHAREDterm for us because a TypeTree can be pickled as
just a type.

@smarter smarter force-pushed the fix-shared-tpt-again branch from 41cbd36 to fbbb7c2 Compare January 19, 2018 18:13
When a TypeTree is represented by a SHAREDterm, we need to follow the
SHAREDterm and call `readTpt()` again. We cannot rely on `readTerm()`
following the SHAREDterm for us because a TypeTree can be pickled as
just a type.
@odersky odersky merged commit c2e5011 into scala:master Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants